@import './variables.scss';
@import './mixin.scss';
@import './transition.scss';
@import './element-ui.scss';
@import './sidebar.scss';

*{
  margin: 0;
  padding: 0;
}

body {
  height: 100%;
  -moz-osx-font-smoothing: grayscale;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-family:'Microsoft YaHei Regular', 'Microsoft YaHei', Helvetica Neue, Helvetica, PingFang SC, Hiragino Sans GB, Microsoft YaHei, Arial, sans-serif;
}

label {
  font-weight: 700;
}

html {
  height: 100%;
  box-sizing: border-box;
}

#app {
  height: 100%;
}

*,
*:before,
*:after {
  box-sizing: inherit;
}

a:focus,
a:active {
  outline: none;
}

a,
a:focus,
a:hover {
  cursor: pointer;
  color: inherit;
  text-decoration: none;
}

div:focus {
  outline: none;
}

.clearfix {
  &:after {
    visibility: hidden;
    display: block;
    font-size: 0;
    content: " ";
    clear: both;
    height: 0;
  }
}

ul {
  list-style: none;
}

// main-container global css
.app-container {
  padding: 20px;
}

.app-page-title {
  height: 40px;
  margin: 0;
  padding-left: 20px;
  line-height: 40px;
  border-bottom: 1px solid #e9e9e9;
  background-color: #fff;
}
.page-container{
  min-height: calc(100vh - 130px);
  margin: 20px;
  border-radius: 4px;
  background-color: #fff;
}

.padding-20{
  padding: 20px;
}

.ml-10{
  margin-left: 10px;
}

.ml-20{
  margin-left: 20px;
}

.mt-10{
  margin-top: 10px;
}

.mt-20{
  margin-top: 20px;
}

.mb-10{
  margin-bottom: 10px;
}

.mb-40{
  margin-bottom: 40px;
}

.mt-40{
  margin-top: 40px;
}

.mr-10{
  margin-right: 10px;
}

.mr-20{
  margin-right: 20px;
}

.pt-20{
  padding-top: 20px;
}

// 文本

.text-center{
  text-align: center;
}

.text-right{
  text-align: right;
}

.text-left{
  text-align: left;
}


.fs-mini{
  font-size: 12px;
}

.fs-base {
  font-size: 14px;
}

.fs-sm{
  font-size: 16px;
}

.fs-xl{
  font-size: 18px;
}

.fs-lg{
  font-size: 20px;
}



.el-table-modify.el-table{
  th{
    background-color: #F2F2F2;
  }
}

.pagination-title{
  font-weight: normal !important;
}

.el-form-modify{
  width: 600px;
  margin: 20px auto 0 auto;

  &.two-col{
    width: 940px;
  }

  .el-input-number{
    width: 140px;
  }

  .el-form-item__label{
    font-weight: normal;
  }

  .form-group-title{
    margin: 20px 0;
    color: #444;
  }
}

.sub-title {
  margin: 20px 0;
  color: #444;
}

.detail-container{
  line-height: 22px;
  font-size: 15px;
  color: #666;

  .detail-sub-title{
    margin: 20px 0;
    color: #444;
  }

  .el-row{
    margin-bottom: 20px;
  }

  .detail-value{
    margin-left: 10px;
    color: #333;
  }

  .detail-toolbar{
    margin-top: 40px;
    text-align: center;
  }
}

.distpicker-modify{
  &.distpicker-address-wrapper select{
    height: 32px;
    padding: 0 6px;
    line-height: 32px;
  }
}

/*  -- 定位 -- */
.position-relative{
  position: relative;
}

/*  -- flex弹性布局 -- */

.flex {
	display: flex;
}

.flex-sub {
	flex: 1;
}

.flex-twice {
	flex: 2;
}

.flex-treble {
	flex: 3;
}

.flex-direction {
	flex-direction: column;
}

.flex-wrap {
	flex-wrap: wrap;
}

.align-start {
	align-items: flex-start;
}

.align-end {
	align-items: flex-end;
}

.align-center {
	align-items: center;
}

.align-stretch {
	align-items: stretch;
}

.self-start {
	align-self: flex-start;
}

.self-center {
	align-self: center;
}

.self-end {
	align-self: flex-end;
}

.self-stretch {
	align-self: stretch;
}

.align-stretch {
	align-items: stretch;
}

.justify-start {
	justify-content: flex-start;
}

.justify-end {
	justify-content: flex-end;
}

.justify-center {
	justify-content: center;
}

.justify-between {
	justify-content: space-between;
}

.justify-around {
	justify-content: space-around;
}

.flex-center{
  display: flex;
  justify-content: center;
  align-items: center;
}

// 文字
.text-ellipsis-1{
	overflow:hidden;
	white-space:nowrap;
	text-overflow:ellipsis;
}

.text-ellipsis-2{
	overflow: hidden; //超出文本隐藏
	text-overflow: ellipsis; //溢出省略号显示
	display: -webkit-box; //将对象作为弹性伸缩盒子
	-webkit-box-orient: vertical; //设置伸缩盒子的子元素排列方式-从上到下垂直排列
	-webkit-line-clamp: 2; //这个属性不是
}

.abs-img{
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.image-slot{
  font-size: 60px;
}